/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.tdmq.v20200217.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeRocketMQTopUsagesResponse extends AbstractModel {

    /**
    * Metric Value List
    */
    @SerializedName("Values")
    @Expose
    private Long [] Values;

    /**
    * Dimension combinations corresponding to metric value. this API has the following dimensions:.
tenant,namespace,group,topic
    */
    @SerializedName("Dimensions")
    @Expose
    private DimensionInstance [] Dimensions;

    /**
    * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
    */
    @SerializedName("RequestId")
    @Expose
    private String RequestId;

    /**
     * Get Metric Value List 
     * @return Values Metric Value List
     */
    public Long [] getValues() {
        return this.Values;
    }

    /**
     * Set Metric Value List
     * @param Values Metric Value List
     */
    public void setValues(Long [] Values) {
        this.Values = Values;
    }

    /**
     * Get Dimension combinations corresponding to metric value. this API has the following dimensions:.
tenant,namespace,group,topic 
     * @return Dimensions Dimension combinations corresponding to metric value. this API has the following dimensions:.
tenant,namespace,group,topic
     */
    public DimensionInstance [] getDimensions() {
        return this.Dimensions;
    }

    /**
     * Set Dimension combinations corresponding to metric value. this API has the following dimensions:.
tenant,namespace,group,topic
     * @param Dimensions Dimension combinations corresponding to metric value. this API has the following dimensions:.
tenant,namespace,group,topic
     */
    public void setDimensions(DimensionInstance [] Dimensions) {
        this.Dimensions = Dimensions;
    }

    /**
     * Get The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. 
     * @return RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public String getRequestId() {
        return this.RequestId;
    }

    /**
     * Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     * @param RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public void setRequestId(String RequestId) {
        this.RequestId = RequestId;
    }

    public DescribeRocketMQTopUsagesResponse() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public DescribeRocketMQTopUsagesResponse(DescribeRocketMQTopUsagesResponse source) {
        if (source.Values != null) {
            this.Values = new Long[source.Values.length];
            for (int i = 0; i < source.Values.length; i++) {
                this.Values[i] = new Long(source.Values[i]);
            }
        }
        if (source.Dimensions != null) {
            this.Dimensions = new DimensionInstance[source.Dimensions.length];
            for (int i = 0; i < source.Dimensions.length; i++) {
                this.Dimensions[i] = new DimensionInstance(source.Dimensions[i]);
            }
        }
        if (source.RequestId != null) {
            this.RequestId = new String(source.RequestId);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap<String, String> map, String prefix) {
        this.setParamArraySimple(map, prefix + "Values.", this.Values);
        this.setParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
        this.setParamSimple(map, prefix + "RequestId", this.RequestId);

    }
}

